home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 001444_daemon _Fri Jun 25 12:00:20 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  5KB

  1. Received: by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  2.     id AA08128; Fri, 25 Jun 93 12:00:22 MET DST
  3. Return-Path: <dsr@hplb.hpl.hp.com>
  4. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  5.     id AA08123; Fri, 25 Jun 93 12:00:20 MET DST
  6. Received: from hplb.hpl.hp.com by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  7.     id AA23940; Fri, 25 Jun 1993 12:23:29 +0200
  8. Received: from dragget.hpl.hp.com by hplb.hpl.hp.com; Fri, 25 Jun 93 11:15:08 +0100
  9. Received: by manuel.hpl.hp.com
  10.     (16.6/15.6+ISC) id AA14156; Fri, 25 Jun 93 11:21:25 +0100
  11. From: Dave_Raggett <dsr@hplb.hpl.hp.com>
  12. Message-Id: <9306251021.AA14156@manuel.hpl.hp.com>
  13. Subject: Text on Image for HTML+
  14. To: marca@ncsa.uiuc.edu
  15. Date: Fri, 25 Jun 93 11:21:23 BST
  16. Cc: www-talk@nxoc01.cern.ch
  17. Mailer: Elm [revision: 66.36.1.1]
  18.  
  19. Marc says:
  20.  
  21. > Hi Dave, got a user request for this...
  22.  
  23. > * text on top of an image background or in a colored background box
  24. >   which sits arbitrarily on top of an image background.
  25.  
  26. > I'm ambivalent; it might be overkill.  On the other hand, it would be
  27. > neat.
  28.  
  29. OK how about this:
  30.  
  31. A new tag FIGT which allows you to position arbitrary text at a given
  32. point in the image. The optional "BOX" attribute requests the browser to draw
  33. a background box (obscuring the image). You can choose to make the whole of
  34. the box into a hypertext link, or to use the A tag for designated parts of
  35. the text. The optional "WIDTH" attribute allows you to limit the width of
  36. the box. By default, the browser will make the width equal the lesser of the
  37. length of the text string or the right most extent of the image.
  38.  
  39. I have also switched back to having the upper left as (0,0). Furthermore,
  40. to provide backwards compatibility with servers supporting X Mosaic's ISMAP
  41. feature, I have added the "PIX" attribute to FIG. This switches the coordinate
  42. scheme to pixels for the scope of the figure, i.e. for FIGA, FIGT and sending
  43. mouse clicks to the server.
  44.  
  45. This will make it practical to automatically convert HTML documents into
  46. the HTML+ format, so that we can painlessly switch to the new DTD.
  47.  
  48. Cheers,
  49.  
  50. Dave Raggett
  51.  
  52. n.b. I have ditched "ISMAP" in favour of "MAP" to ensure people realise
  53. that the mechanism is not the same (i.e. it defaults to scaled coords).
  54.  
  55. ----------- DTD snippet for figures ---------------------------------------
  56.  
  57. <!-- Figures
  58.  
  59.     Figures can be fixed to the point in the text flow where
  60.     they should appear or may float relative to the text.
  61.  
  62.     The image/drawing is specified by a URL or as embedded
  63.     data for simple drawings. The elements text serves
  64.     as the caption. Use the CREDIT emphasis to record
  65.     photo credits etc.
  66.  
  67.     Mouse clicks can be handled by server (MAP) or browser (FIGA)
  68.     The coordinate scheme is (0,0) for upper left and (1,1)
  69.     for the lower right of the figure with X to the right
  70.     and Y up the "page". When sending clicks to the server
  71.     append to URL as in:   URL?X,Y
  72.  
  73.     The PIX attribute switches the coordinate scheme to
  74.     pixel values with (0,0) as the top left. This is intended
  75.     to provide backwards compatibility with servers that
  76.     support X Mosaic's ISMAP feature.
  77.  
  78.     For backwards compatibility with servers which support
  79.     X Mosaic's ISMAP feature
  80.  
  81.     Clicks on areas designated with FIGA should take
  82.     preference over handling by the server.
  83.  
  84.     FIGT allows you to position text over the figure.
  85. -->
  86.  
  87. <!ELEMENT FIG - - (EMBED?, (FIGA|FIGT)*, (%text;)*)>
  88. <!ATTLIST FIG
  89.     id      ID       #IMPLIED
  90.     float  (float)   #IMPLIED -- fixed or floating figures --
  91.     map     (map)    #IMPLIED -- server can handle mouse clicks --
  92.     pix     (pix)    #IMPLIED -- use pixel coordinates --
  93.     src     %URL;    #IMPLIED -- link to image data -->
  94.  
  95. <!-- Figure anchors designate polygonal areas on the figure
  96.     which can be clicked with the mouse. The default area
  97.     is the whole of the figure. This mechanism interprets
  98.     mouse clicks locally, and browsers can choose to highlight
  99.     the designated area (or change the mouse sprite) when the
  100.     mouse is moved over the area.
  101.  
  102.     Note that polygons may be non-convex or even intersect
  103.     themselves, thereby complicating the definition of what
  104.     is enclosed by the polygon. Holes are excluded.
  105. -->
  106.  
  107. <!ELEMENT FIGA - O (EMPTY)>
  108. <!ATTLIST FIGA
  109.     href    %URL;   #REQUIRED   -- link to traverse when clicked --
  110.     area    NUMBERS #IMPLIED    -- x1,y1,x2,y2,x3,y3,... -->
  111.  
  112. <!-- Text on top of an figure background, or in a colored background
  113.      box which sits arbitrarily on top of an figure background.
  114.      The text can include headers, lists and tables etc. The width
  115.      attribute allows you to limit the width of the text box. The
  116.      height is then determined automatically by the browser.
  117.  
  118.      You can make the whole of the box into a hypertext link.
  119. -->
  120.  
  121. <!ELEMENT FIGT - - (%main;)>
  122. <!ATTLIST FIGT
  123.     at      NUMBERS #IMPLIED    -- upper left origin for text --
  124.     box     (box)   #IMPLIED    -- draw background coloured box --
  125.     width   NUMBER  #IMPLIED    -- given in average char widths --
  126.     href    %URL;   #REQUIRED   -- link to traverse when clicked -->
  127.